'use strict';
//获取数据库
const db = uniCloud.database()
  
exports.main = async (event, context) => { 
	let result = await db.collection(event.tableName).get()
	return {
		code: 200,
		msg: '数据请求成功',
		data: result.data
	}
};
